# -*- coding: utf-8 -*-
# @FileName : CreateTestUser.py
# @Time     : 2023/6/8 21:16
# @Author   : Zhong Runke
import requests

def createUser(name=None):
    # http://120.25.1.147:5002/WeBASE-Front/privateKey?useAes=false&type=0&userName=202306082114
    if name is None:
        return False
    params = {
        "useAes": "false",
        "type": 0,
        "userName": name
    }
    try:
        r = requests.get("http://120.25.1.147:5002/WeBASE-Front/privateKey", params=params)
    except Exception as e:
        return False
    if r.status_code != 200:
        return False
    return r.text

if __name__ == '__main__':
    response = createUser("202306082120")
    print(response)